package com.example.layui.demo.service;

import com.example.layui.demo.entity.Article;
import com.example.layui.demo.entity.ArticleVo;
import com.example.layui.demo.entity.StuCategaryVo;
import com.example.layui.demo.mapper.StuMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import java.util.List;
import java.util.Map;


@Service
public class StudentServiceImpl implements StuService {

    @Autowired
    StuMapper stuMapper;
    @Override
    public List<StuCategaryVo> getResult() {
        return stuMapper.getResult();
    }

    @Override
    public List<Article> getArticleList() {
        return stuMapper.getArticleList();
    }

    @Override
    public List<Article> getArticlePageList(ArticleVo articleVo) {
        return stuMapper.getArticlePageList(articleVo);
    }

    @Override
    public Integer getArticleCount(ArticleVo vo) {
        return stuMapper.getArticleCount(vo);
    }

    @Override
    public Article getArticle(Integer id) {
        return stuMapper.getArticle(id);
    }

    @Override
    public int delArticlebyId(Integer id) {
        return stuMapper.delArticlebyId(id);
    }

    @Override
    public int updArticleById(Article article) {
        return stuMapper.updArticleById(article);
    }

    @Override
    public int delArticlebyIds(Integer[] id) {
        return stuMapper.delArticlebyIds(id);
    }


}
